package com.ruoyi.handing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.handing.mapper.AlgsEthicalReviewMapper;
import com.ruoyi.handing.domain.AlgsEthicalReview;
import com.ruoyi.handing.service.IAlgsEthicalReviewService;

/**
 * 伦理审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-18
 */
@Service
public class AlgsEthicalReviewServiceImpl implements IAlgsEthicalReviewService 
{
    @Autowired
    private AlgsEthicalReviewMapper algsEthicalReviewMapper;

    /**
     * 查询伦理审核
     * 
     * @param ethicalReviewId 伦理审核主键
     * @return 伦理审核
     */
    @Override
    public AlgsEthicalReview selectAlgsEthicalReviewByEthicalReviewId(Long ethicalReviewId)
    {
        return algsEthicalReviewMapper.selectAlgsEthicalReviewByEthicalReviewId(ethicalReviewId);
    }

    /**
     * 查询伦理审核列表
     * 
     * @param algsEthicalReview 伦理审核
     * @return 伦理审核
     */
    @Override
    public List<AlgsEthicalReview> selectAlgsEthicalReviewList(AlgsEthicalReview algsEthicalReview)
    {
        return algsEthicalReviewMapper.selectAlgsEthicalReviewList(algsEthicalReview);
    }

    /**
     * 新增伦理审核
     * 
     * @param algsEthicalReview 伦理审核
     * @return 结果
     */
    @Override
    public int insertAlgsEthicalReview(AlgsEthicalReview algsEthicalReview)
    {
        return algsEthicalReviewMapper.insertAlgsEthicalReview(algsEthicalReview);
    }

    /**
     * 修改伦理审核
     * 
     * @param algsEthicalReview 伦理审核
     * @return 结果
     */
    @Override
    public int updateAlgsEthicalReview(AlgsEthicalReview algsEthicalReview)
    {
        return algsEthicalReviewMapper.updateAlgsEthicalReview(algsEthicalReview);
    }

    /**
     * 批量删除伦理审核
     * 
     * @param ethicalReviewIds 需要删除的伦理审核主键
     * @return 结果
     */
    @Override
    public int deleteAlgsEthicalReviewByEthicalReviewIds(Long[] ethicalReviewIds)
    {
        return algsEthicalReviewMapper.deleteAlgsEthicalReviewByEthicalReviewIds(ethicalReviewIds);
    }

    /**
     * 删除伦理审核信息
     * 
     * @param ethicalReviewId 伦理审核主键
     * @return 结果
     */
    @Override
    public int deleteAlgsEthicalReviewByEthicalReviewId(Long ethicalReviewId)
    {
        return algsEthicalReviewMapper.deleteAlgsEthicalReviewByEthicalReviewId(ethicalReviewId);
    }
}
